package com.clayecloud.common.client.services.Impl;

import com.clayecloud.common.client.services.HouseOrderService;
import com.clayecloud.common.mappers.HouseOrderMapper;
import com.clayecloud.common.utils.MessageUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ClayeLink
 * @date 2022/4/8 1:29
 */
@Service
public class HouseOrderServiceImpl implements HouseOrderService {

    @Resource
    private HouseOrderMapper houseOrderMapper;

    @Override
    public MessageUtil selectByUserID(Integer userId) {
        return MessageUtil.success("查询成功").add(houseOrderMapper.selectByUserID(userId));
    }
}
